gnomeos-install.sh: retrieve full path to srcdir
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Tue, 17 Apr 2012 20:01:49 +0000 (22:01 +0200)
committerCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Tue, 17 Apr 2012 20:01:49 +0000 (22:01 +0200)
This fixes the installation of the grub2 script.

gnomeos/gnomeos-install.sh

index 649b750e3959f12b75244f160f5ba9c430764288..1b7cc783b4c20cfa0f06d2e93438b05b28597c02 100755 (executable)
 set -e
 set -x
 
-SRCDIR=`dirname $0`
 WORKDIR=`pwd`
+cd `dirname $0`
+SRCDIR=`pwd`
+cd $WORKDIR
 
 if test $(id -u) != 0; then
     cat <<EOF